home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
59338
/
59338.xpi
/
chrome
/
global
/
listbox.css
< prev
next >
Wrap
Cascading Style Sheet File
|
2010-01-29
|
7KB
|
226 lines
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998-2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* ===== listbox.css =======================================================
== Styles used by XUL listbox-related elements.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: listbox ::::: */
listbox {
-moz-appearance: none !important;
margin: 2px 4px;
border: 2px solid !important;
-moz-border-radius: 5px;
-moz-border-top-colors:#969595 #c1c0bf !important;
-moz-border-bottom-colors:#d6d5d4 #e0dfde !important;
-moz-border-left-colors:#bbbab9 #dcdbda !important;
-moz-border-right-colors:#bcbbba #dcdbda !important;
background-color: #ffffff;
color: #000000;
}
listbox:focus {
-moz-border-top-colors:#2f75c5 #789bc3 !important;
-moz-border-bottom-colors:#3278c7 #88abd3 !important;
-moz-border-left-colors:#3177c6 #86a8d1 !important;
-moz-border-right-colors:#3278c7 #86a8d1 !important;
}
listbox[disabled="true"] {
color: GrayText;
}
/* ::::: listitem ::::: */
listitem {
border: 2px solid transparent;
}
listitem:hover {
/*background-color:#dae8f6;
background-image: url("chrome://browser/skin/icons/treeitem_hover.png");
background-repeat:repeat-x;*/
background: -moz-linear-gradient(top, #deeefe, #ccdae7);
border: 2px solid !important;
-moz-border-radius: 3px;
-moz-border-top-colors:#cce1f6 #e7f3fe !important;
-moz-border-bottom-colors:#cadef2 #e3eef8 !important;
-moz-border-left-colors:#cbe0f4 #e5f1fb !important;
-moz-border-right-colors:#cadff3 #e5f0fb !important;
}
listbox:focus > listitem[selected="true"][current="true"] {
border: 2px solid transparent;
}
listitem[selected="true"] {
/*background-color:#4790d7;
background-image: url("chrome://browser/skin/icons/treeitem_sel.png");
background-repeat:repeat-x;*/
background: -moz-linear-gradient(top, #68b4fd, #5190cf);
border: 2px solid !important;
-moz-border-radius: 3px;
-moz-border-top-colors:#418bd4 #89c3fd !important;
-moz-border-bottom-colors:#418bd4 #71a8df !important;
-moz-border-left-colors:#418bd4 #7fb9f1 !important;
-moz-border-right-colors:#418bd4 #7ab3ea !important;
color:#ffffff !important;
}
listbox:focus > listitem[selected="true"] {
/*background-color:#4790d7;
background-image: url("chrome://browser/skin/icons/treeitem_sel.png");
background-repeat:repeat-x;*/
background: -moz-linear-gradient(top, #68b4fd, #5190cf);
border: 2px solid !important;
-moz-border-radius: 3px;
-moz-border-top-colors:#418bd4 #89c3fd !important;
-moz-border-bottom-colors:#418bd4 #71a8df !important;
-moz-border-left-colors:#418bd4 #7fb9f1 !important;
-moz-border-right-colors:#418bd4 #7ab3ea !important;
color:#ffffff !important;
}
/* ::::: listheader ::::: */
listheader {
-moz-appearance: none;
-moz-box-align: center;
border: none !important;
/*-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;*/
/*-moz-border-top-colors:#969595 #c1c0bf !important;
-moz-border-bottom-colors:#d6d5d4 #e0dfde !important;
-moz-border-left-colors:#bbbab9 #dcdbda !important;
-moz-border-right-colors:#bcbbba #dcdbda !important;*/
background-color: #DADCE4;
color: #000000;
padding: 0 4px;
}
listheader[sortable="true"]:hover:active {
border: 2px solid !important;
-moz-border-radius: 5px;
-moz-border-top-colors:#2f75c5 #789bc3 !important;
-moz-border-bottom-colors:#3278c7 #88abd3 !important;
-moz-border-left-colors:#3177c6 #86a8d1 !important;
-moz-border-right-colors:#3278c7 #86a8d1 !important;
padding: 1px 4px 0 5px;
}
.listheader-icon {
-moz-margin-end: 2px;
}
.listheader-label {
margin: 0px !important;
}
/* ..... sort direction icon ..... */
.listheader-sortdirection {
list-style-image: none;
}
.listheader-sortdirection[sortDirection="ascending"] {
list-style-image: url("chrome://global/skin/tree/sort-asc.png");
}
.listheader-sortdirection[sortDirection="ascending"]:-moz-system-metric(windows-classic) {
list-style-image: url("chrome://global/skin/tree/sort-asc-classic.png");
}
.listheader-sortdirection[sortDirection="descending"] {
list-style-image: url("chrome://global/skin/tree/sort-dsc.png");
}
.listheader-sortdirection[sortDirection="descending"]:-moz-system-metric(windows-classic) {
list-style-image: url("chrome://global/skin/tree/sort-dsc-classic.png");
}
/* ::::: listcell ::::: */
.listcell-label {
margin: 0px !important;
padding-top: 0px;
padding-bottom: 1px;
-moz-padding-start: 4px;
-moz-padding-end: 0px;
white-space: nowrap;
}
.listcell-icon {
-moz-margin-end: 2px;
}
.listcell-label[disabled="true"] {
color: GrayText;
}
/* ::::: listcell checkbox ::::: */
.listcell-check {
-moz-appearance: none !important;
-moz-box-align: center;
margin: 0px 2px;
border: none;
width: 21px;
height: 21px;
background-image: url("chrome://global/skin/checkbox/checkbox.png");
background-color:transparent;
}
.listcell-check[checked="true"] {
background-image: url("chrome://global/skin/checkbox/checkbox-checked.png");
background-color:transparent;
}
.listcell-check[disabled="true"] {
background-image: url("chrome://global/skin/checkbox/checkbox.png");
opacity: 0.4;
}
.listcell-check[disabled="true"][checked="true"] {
background-image: url("chrome://global/skin/checkbox/checkbox-checked.png");
}